package com.lagou.edu.dto;

import com.lagou.edu.pojo.Resume;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;

public class ResumeDto implements Serializable {

    private Long id;
    private String name;
    private String address;
    private String phone;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Resume toEntity() {
        Resume resume = new Resume();
        BeanUtils.copyProperties(this,resume);
        return resume;

    }
}
